/**
 * Generate time : 2011-07-04 14:55:41
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cm.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCMReceiveGoodsInfo
 * 
 */
public class ZMCMReceiveGoodsInfo extends DaoEPBase {

	private String fdKeyId = " "; /* 主键 */
	private String fdReceiveId = " "; /* 到货登记主键 */
	private String fdDetailId = " "; /* 采购计划明细主键 */
	private String fdMaterialId = " "; /* 物资ID */
	private String fdMaterialCode = " "; /* 物资编号 */
	private String fdMaterialName = " "; /* 计划物资名称 */
	private String fdMaterial = " "; /* 物资名称 */
	private String fdSpecModel = " "; /* 规格型号 */
	private String fdQuality = " "; /* 材质 */
	private String fdNumber = " "; /* 图号 */
	private String fdMetric = " "; /* 计量单位 */
	private Double fdPlanNum = new Double(0); /* 应收数量 */
	private Double fdActualNum = new Double(0); /* 实收数量 */
	private Double fdReceiveSum = new Double(0); /* 到货金额 */
	private Double fdValidateSum = new Double(0); /* 验收金额 */
	private Double fdValidateNum = new Double(0); /* 验收数量 */
	private String fdValidatePeople = " "; /* 验收人 */
	private String fdValidateStatus = " "; /* 验收状态 */
	private String fdImportnoteCode = " "; /* 入库单号 */

	private String fdStatus = " "; /* 记录状态 */
	private String fdSupplyName = " "; /* 供应商名称 */

	private String fdMaterialInnerCode = " "; /* 物资内码 */
	private String fdMaterialType = " "; /* 物资类型 */
	private Double fdPrice = new Double(0); /* 单价 */

	private Double fdSum = new Double(0); /* 到货金额 */
	private Double fdPlanNumber = new Double(0); /* 开单数量 */
	private Double fdActualNumber = new Double(0); /* 实进数量 */
	private String fdProvideDepartment = " "; /* 供货单位 */

	private String fdRequirePlan = " "; /* 需求计划 */
	private String fdTechnicalDocument = " "; /* 质量验收技术资料 */
	private String fdRemark = " "; /* 备注 */

	private String fdMaterialSource = " "; /* 材料来源 */
	private String fdInvoice = ""; /* 发票号 */
	private Double fdInvoiceSum = new Double(0); /* 发票金额 */
	
	private String fdDate = " "; /* 到货日期 */
	private String fdTypeCode = " "; /* 类别编码 */
	private String fdTypeName = " "; /* 类别名称 */
	private Double fdNotNumber = new Double(0); /* 未到货数量 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdMaterialInnerCode");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("物资内码");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdMaterialType");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("物资类型");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdPrice");
		eiColumn.setType("N");
		eiColumn.setScaleLength(5);
		eiColumn.setFieldLength(15);
		eiColumn.setDescName("单价");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDetailId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("采购计划明细主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdReceiveId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("到货登记主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdMaterialId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("物资ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdMaterialCode");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("物资编号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdMaterialName");
		eiColumn.setFieldLength(80);
		eiColumn.setDescName("计划物资名称");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdMaterial");
		eiColumn.setFieldLength(80);
		eiColumn.setDescName("物资名称");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdSpecModel");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("规格型号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdQuality");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("材质");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdNumber");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("图号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdMetric");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("计量单位");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdPlanNum");
		eiColumn.setType("N");
		eiColumn.setScaleLength(5);
		eiColumn.setFieldLength(15);
		eiColumn.setDescName("应收数量");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdActualNum");
		eiColumn.setType("N");
		eiColumn.setScaleLength(5);
		eiColumn.setFieldLength(15);
		eiColumn.setDescName("实收数量");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdReceiveSum");
		eiColumn.setType("N");
		eiColumn.setScaleLength(5);
		eiColumn.setFieldLength(15);
		eiColumn.setDescName("到货金额");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdValidateSum");
		eiColumn.setType("N");
		eiColumn.setScaleLength(5);
		eiColumn.setFieldLength(15);
		eiColumn.setDescName("验收金额");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdValidateNum");
		eiColumn.setType("N");
		eiColumn.setScaleLength(5);
		eiColumn.setFieldLength(15);
		eiColumn.setDescName("验收数量");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdValidatePeople");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("验收人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdValidateStatus");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("验收状态");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdImportnoteCode");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("入库单号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdStatus");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("记录状态");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSupplyName");
		eiColumn.setFieldLength(200);
		eiColumn.setDescName("供应商名称");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSum");
		eiColumn.setType("N");
		eiColumn.setScaleLength(5);
		eiColumn.setFieldLength(15);
		eiColumn.setDescName("到货金额");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdPlanNumber");
		eiColumn.setType("N");
		eiColumn.setScaleLength(5);
		eiColumn.setFieldLength(15);
		eiColumn.setDescName("开单数量");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdActualNumber");
		eiColumn.setType("N");
		eiColumn.setScaleLength(5);
		eiColumn.setFieldLength(15);
		eiColumn.setDescName("实进数量");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdProvideDepartment");
		eiColumn.setFieldLength(200);
		eiColumn.setDescName("供货单位");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRequirePlan");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("需求计划");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdTechnicalDocument");
		eiColumn.setFieldLength(2000);
		eiColumn.setDescName("质量验收技术资料");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRemark");
		eiColumn.setFieldLength(2000);
		eiColumn.setDescName("备注");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdMaterialSource");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("材料来源");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdInvoice");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("发票号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdInvoiceSum");
		eiColumn.setType("N");
		eiColumn.setScaleLength(5);
		eiColumn.setFieldLength(15);
		eiColumn.setDescName("发票金额");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdDate");
		eiColumn.setFieldLength(14);
		eiColumn.setDescName("到货日期");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdTypeCode");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("类别编码");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdTypeName");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("类别名称");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdNotNumber");
		eiColumn.setType("N");
		eiColumn.setScaleLength(5);
		eiColumn.setFieldLength(15);
		eiColumn.setDescName("未到货数量");
		eiMetadata.addMeta(eiColumn);
	}

	/**
	 * the constructor
	 */
	public ZMCMReceiveGoodsInfo() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - 主键
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * @return the fdDetailId
	 */
	public String getFdDetailId() {
		return fdDetailId;
	}

	/**
	 * @param fdDetailId
	 *            the fdDetailId to set
	 */
	public void setFdDetailId(String fdDetailId) {
		this.fdDetailId = fdDetailId;
	}

	/**
	 * get the fdReceiveId - 到货登记主键
	 * 
	 * @return the fdReceiveId
	 */
	public String getFdReceiveId() {
		return this.fdReceiveId;
	}

	/**
	 * set the fdReceiveId - 到货登记主键
	 */
	public void setFdReceiveId(String fdReceiveId) {
		this.fdReceiveId = fdReceiveId;
	}

	/**
	 * get the fdMaterialId - 物资ID
	 * 
	 * @return the fdMaterialId
	 */
	public String getFdMaterialId() {
		return this.fdMaterialId;
	}

	/**
	 * set the fdMaterialId - 物资ID
	 */
	public void setFdMaterialId(String fdMaterialId) {
		this.fdMaterialId = fdMaterialId;
	}

	/**
	 * get the fdMaterialCode - 物资编号
	 * 
	 * @return the fdMaterialCode
	 */
	public String getFdMaterialCode() {
		return this.fdMaterialCode;
	}

	/**
	 * set the fdMaterialCode - 物资编号
	 */
	public void setFdMaterialCode(String fdMaterialCode) {
		this.fdMaterialCode = fdMaterialCode;
	}

	/**
	 * get the fdMaterialName - 计划物资名称
	 * 
	 * @return the fdMaterialName
	 */
	public String getFdMaterialName() {
		return this.fdMaterialName;
	}

	/**
	 * set the fdMaterialName - 计划物资名称
	 */
	public void setFdMaterialName(String fdMaterialName) {
		this.fdMaterialName = fdMaterialName;
	}
	
	/**
	 * get the fdMaterial - 物资名称
	 * 
	 * @return the fdMaterial
	 */
	public String getFdMaterial() {
		return this.fdMaterial;
	}

	/**
	 * set the fdMaterial - 物资名称
	 */
	public void setFdMaterial(String fdMaterial) {
		this.fdMaterial = fdMaterial;
	}

	/**
	 * get the fdSpecModel - 规格型号
	 * 
	 * @return the fdSpecModel
	 */
	public String getFdSpecModel() {
		return this.fdSpecModel;
	}

	/**
	 * set the fdSpecModel - 规格型号
	 */
	public void setFdSpecModel(String fdSpecModel) {
		this.fdSpecModel = fdSpecModel;
	}

	/**
	 * get the fdQuality - 材质
	 * 
	 * @return the fdQuality
	 */
	public String getFdQuality() {
		return this.fdQuality;
	}

	/**
	 * set the fdQuality - 材质
	 */
	public void setFdQuality(String fdQuality) {
		this.fdQuality = fdQuality;
	}

	/**
	 * get the fdNumber - 图号
	 * 
	 * @return the fdNumber
	 */
	public String getFdNumber() {
		return this.fdNumber;
	}

	/**
	 * set the fdNumber - 图号
	 */
	public void setFdNumber(String fdNumber) {
		this.fdNumber = fdNumber;
	}

	/**
	 * get the fdMetric - 计量单位
	 * 
	 * @return the fdMetric
	 */
	public String getFdMetric() {
		return this.fdMetric;
	}

	/**
	 * set the fdMetric - 计量单位
	 */
	public void setFdMetric(String fdMetric) {
		this.fdMetric = fdMetric;
	}

	/**
	 * get the fdPlanNum - 应收数量
	 * 
	 * @return the fdPlanNum
	 */
	public Double getFdPlanNum() {
		return this.fdPlanNum;
	}

	/**
	 * set the fdPlanNum - 应收数量
	 */
	public void setFdPlanNum(Double fdPlanNum) {
		this.fdPlanNum = fdPlanNum;
	}

	/**
	 * get the fdActualNum - 实收数量
	 * 
	 * @return the fdActualNum
	 */
	public Double getFdActualNum() {
		return this.fdActualNum;
	}

	/**
	 * set the fdActualNum - 实收数量
	 */
	public void setFdActualNum(Double fdActualNum) {
		this.fdActualNum = fdActualNum;
	}

	/**
	 * get the fdReceiveSum - 到货金额
	 * 
	 * @return the fdReceiveSum
	 */
	public Double getFdReceiveSum() {
		return this.fdReceiveSum;
	}

	/**
	 * set the fdReceiveSum - 到货金额
	 */
	public void setFdReceiveSum(Double fdReceiveSum) {
		this.fdReceiveSum = fdReceiveSum;
	}

	/**
	 * get the fdValidateSum - 验收金额
	 * 
	 * @return the fdValidateSum
	 */
	public Double getFdValidateSum() {
		return this.fdValidateSum;
	}

	/**
	 * set the fdValidateSum - 验收金额
	 */
	public void setFdValidateSum(Double fdValidateSum) {
		this.fdValidateSum = fdValidateSum;
	}

	/**
	 * get the fdValidateNum - 验收数量
	 * 
	 * @return the fdValidateNum
	 */
	public Double getFdValidateNum() {
		return this.fdValidateNum;
	}

	/**
	 * set the fdValidateNum - 验收数量
	 */
	public void setFdValidateNum(Double fdValidateNum) {
		this.fdValidateNum = fdValidateNum;
	}

	/**
	 * get the fdValidatePeople - 验收人
	 * 
	 * @return the fdValidatePeople
	 */
	public String getFdValidatePeople() {
		return this.fdValidatePeople;
	}

	/**
	 * set the fdValidatePeople - 验收人
	 */
	public void setFdValidatePeople(String fdValidatePeople) {
		this.fdValidatePeople = fdValidatePeople;
	}

	/**
	 * get the fdValidateStatus - 验收状态
	 * 
	 * @return the fdValidateStatus
	 */
	public String getFdValidateStatus() {
		return this.fdValidateStatus;
	}

	/**
	 * set the fdValidateStatus - 验收状态
	 */
	public void setFdValidateStatus(String fdValidateStatus) {
		this.fdValidateStatus = fdValidateStatus;
	}

	/**
	 * get the fdImportnoteCode - 入库单号
	 * 
	 * @return the fdImportnoteCode
	 */
	public String getFdImportnoteCode() {
		return this.fdImportnoteCode;
	}

	/**
	 * set the fdImportnoteCode - 入库单号
	 */
	public void setFdImportnoteCode(String fdImportnoteCode) {
		this.fdImportnoteCode = fdImportnoteCode;
	}

	/**
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return fdStatus;
	}

	/**
	 * @param fdStatus
	 *            the fdStatus to set
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}

	public String getFdMaterialInnerCode() {
		return fdMaterialInnerCode;
	}

	public void setFdMaterialInnerCode(String fdMaterialInnerCode) {
		this.fdMaterialInnerCode = fdMaterialInnerCode;
	}

	public String getFdMaterialType() {
		return fdMaterialType;
	}

	public void setFdMaterialType(String fdMaterialType) {
		this.fdMaterialType = fdMaterialType;
	}

	public Double getFdPrice() {
		return fdPrice;
	}

	public void setFdPrice(Double fdPrice) {
		this.fdPrice = fdPrice;
	}

	/**
	 * @return the fdSupplyName
	 */
	public String getFdSupplyName() {
		return fdSupplyName;
	}

	/**
	 * @param fdSupplyName
	 *            the fdSupplyName to set
	 */
	public void setFdSupplyName(String fdSupplyName) {
		this.fdSupplyName = fdSupplyName;
	}

	/**
	 * @return the fdActualNumber
	 */
	public Double getFdActualNumber() {
		return fdActualNumber;
	}

	public void setFdActualNumber(Double fdActualNumber) {
		this.fdActualNumber = fdActualNumber;
	}

	public Double getFdPlanNumber() {
		return fdPlanNumber;
	}

	public void setFdPlanNumber(Double fdPlanNumber) {
		this.fdPlanNumber = fdPlanNumber;
	}

	public String getFdProvideDepartment() {
		return fdProvideDepartment;
	}

	public void setFdProvideDepartment(String fdProvideDepartment) {
		this.fdProvideDepartment = fdProvideDepartment;
	}

	public Double getFdSum() {
		return fdSum;
	}

	public void setFdSum(Double fdSum) {
		this.fdSum = fdSum;
	}

	/**
	 * get the fdRequirePlan - 需求计划
	 * 
	 * @return the fdRequirePlan
	 */
	public String getFdRequirePlan() {
		return this.fdRequirePlan;
	}

	/**
	 * set the fdRequirePlan - 需求计划
	 */
	public void setFdRequirePlan(String fdRequirePlan) {
		this.fdRequirePlan = fdRequirePlan;
	}

	/**
	 * get the fdTechnicalDocument - 质量验收技术资料
	 * 
	 * @return the fdTechnicalDocument
	 */
	public String getFdTechnicalDocument() {
		return this.fdTechnicalDocument;
	}

	/**
	 * set the fdTechnicalDocument - 质量验收技术资料
	 */
	public void setFdTechnicalDocument(String fdTechnicalDocument) {
		this.fdTechnicalDocument = fdTechnicalDocument;
	}

	/**
	 * get the fdRemark - 备注
	 * 
	 * @return the fdRemark
	 */
	public String getFdRemark() {
		return this.fdRemark;
	}

	/**
	 * set the fdRemark - 备注
	 */
	public void setFdRemark(String fdRemark) {
		this.fdRemark = fdRemark;
	}

	/**
	 * get the fdMaterialSource - 材料来源
	 * 
	 * @return the fdMaterialSource
	 */
	public String getFdMaterialSource() {
		return this.fdMaterialSource;
	}

	/**
	 * set the fdMaterialSource - 材料来源
	 */
	public void setFdMaterialSource(String fdMaterialSource) {
		this.fdMaterialSource = fdMaterialSource;
	}

	/**
	 * get the fdInvoice - 发票号
	 * 
	 * @return the fdInvoice
	 */
	public String getFdInvoice() {
		return this.fdInvoice;
	}

	/**
	 * set the fdInvoice - 发票号
	 */
	public void setFdInvoice(String fdInvoice) {
		this.fdInvoice = fdInvoice;
	}

	/**
	 * get the fdSum - 发票金额
	 * 
	 * @return the fdSum
	 */
	public Double getFdInvoiceSum() {
		return this.fdInvoiceSum;
	}

	/**
	 * set the fdSum - 发票金额
	 */
	public void setFdInvoiceSum(Double fdInvoiceSum) {
		this.fdInvoiceSum = fdInvoiceSum;
	}
	
	/**
	 * @return the fdDate
	 */
	public String getFdDate() {
		return fdDate;
	}

	/**
	 * @param fdDate
	 *            the fdDate to set
	 */
	public void setFdDate(String fdDate) {
		this.fdDate = fdDate;
	}
	
	/**
	 * get the fdTypeCode - 类别编码
	 * 
	 * @return the fdTypeCode
	 */
	public String getFdTypeCode() {
		return this.fdTypeCode;
	}

	/**
	 * set the fdTypeCode - 类别编码
	 */
	public void setFdTypeCode(String fdTypeCode) {
		this.fdTypeCode = fdTypeCode;
	}

	/**
	 * get the fdTypeName - 类别名称
	 * 
	 * @return the fdTypeName
	 */
	public String getFdTypeName() {
		return this.fdTypeName;
	}

	/**
	 * set the fdTypeName - 类别名称
	 */
	public void setFdTypeName(String fdTypeName) {
		this.fdTypeName = fdTypeName;
	}
	
	/**
	 * get the fdNotNumber - 未到货数量
	 * 
	 * @return the fdNotNumber
	 */
	public Double getFdNotNumber() {
		return this.fdNotNumber;
	}

	/**
	 * set the fdNotNumber - 未到货数量
	 */
	public void setFdNotNumber(Double fdNotNumber) {
		this.fdNotNumber = fdNotNumber;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdDetailId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDetailId")), fdDetailId));
		setFdReceiveId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReceiveId")), fdReceiveId));
		setFdMaterialId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMaterialId")), fdMaterialId));
		setFdMaterialCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMaterialCode")), fdMaterialCode));
		setFdMaterialName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMaterialName")), fdMaterialName));
		setFdMaterial(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMaterial")), fdMaterial));
		setFdSpecModel(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSpecModel")), fdSpecModel));
		setFdQuality(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdQuality")), fdQuality));
		setFdNumber(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNumber")), fdNumber));
		setFdMetric(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMetric")), fdMetric));
		setFdPlanNum(NumberUtils.toDouble(StringUtils.toString(map.get("fdPlanNum")), fdPlanNum));
		setFdActualNum(NumberUtils.toDouble(StringUtils.toString(map.get("fdActualNum")), fdActualNum));
		setFdReceiveSum(NumberUtils.toDouble(StringUtils.toString(map.get("fdReceiveSum")), fdReceiveSum));
		setFdValidateSum(NumberUtils.toDouble(StringUtils.toString(map.get("fdValidateSum")), fdValidateSum));
		setFdValidateNum(NumberUtils.toDouble(StringUtils.toString(map.get("fdValidateNum")), fdValidateNum));
		setFdValidatePeople(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdValidatePeople")), fdValidatePeople));
		setFdValidateStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdValidateStatus")), fdValidateStatus));
		setFdImportnoteCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdImportnoteCode")), fdImportnoteCode));

		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdSupplyName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSupplyName")), fdSupplyName));

		setFdMaterialInnerCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMaterialInnerCode")), fdMaterialInnerCode));
		setFdMaterialType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMaterialType")), fdMaterialType));
		setFdPrice(NumberUtils.toDouble(StringUtils.toString(map.get("fdPrice")), fdPrice));

		setFdSum(NumberUtils.toDouble(StringUtils.toString(map.get("fdSum")), fdSum));
		setFdPlanNumber(NumberUtils.toDouble(StringUtils.toString(map.get("fdPlanNumber")), fdPlanNumber));
		setFdActualNumber(NumberUtils.toDouble(StringUtils.toString(map.get("fdActualNumber")), fdActualNumber));
		setFdProvideDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProvideDepartment")), fdProvideDepartment));
		setFdRequirePlan(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRequirePlan")), fdRequirePlan));
		setFdTechnicalDocument(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTechnicalDocument")), fdTechnicalDocument));
		setFdRemark(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemark")), fdRemark));

		setFdMaterialSource(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMaterialSource")), fdMaterialSource));
		setFdInvoice(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdInvoice")), fdInvoice));
		setFdInvoiceSum(NumberUtils.toDouble(StringUtils.toString(map.get("fdInvoiceSum")), fdInvoiceSum));
		
		setFdDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDate")), fdDate));
		setFdTypeCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTypeCode")), fdTypeCode));
		setFdTypeName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTypeName")), fdTypeName));
		setFdNotNumber(NumberUtils.toDouble(StringUtils.toString(map.get("fdNotNumber")), fdNotNumber));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdDetailId", StringUtils.toString(fdDetailId, eiMetadata.getMeta("fdDetailId")));
		map.put("fdReceiveId", StringUtils.toString(fdReceiveId, eiMetadata.getMeta("fdReceiveId")));
		map.put("fdMaterialId", StringUtils.toString(fdMaterialId, eiMetadata.getMeta("fdMaterialId")));
		map.put("fdMaterialCode", StringUtils.toString(fdMaterialCode, eiMetadata.getMeta("fdMaterialCode")));
		map.put("fdMaterialName", StringUtils.toString(fdMaterialName, eiMetadata.getMeta("fdMaterialName")));
		map.put("fdMaterial", StringUtils.toString(fdMaterial, eiMetadata.getMeta("fdMaterial")));
		map.put("fdSpecModel", StringUtils.toString(fdSpecModel, eiMetadata.getMeta("fdSpecModel")));
		map.put("fdQuality", StringUtils.toString(fdQuality, eiMetadata.getMeta("fdQuality")));
		map.put("fdNumber", StringUtils.toString(fdNumber, eiMetadata.getMeta("fdNumber")));
		map.put("fdMetric", StringUtils.toString(fdMetric, eiMetadata.getMeta("fdMetric")));
		map.put("fdPlanNum", StringUtils.toString(fdPlanNum, eiMetadata.getMeta("fdPlanNum")));
		map.put("fdActualNum", StringUtils.toString(fdActualNum, eiMetadata.getMeta("fdActualNum")));
		map.put("fdReceiveSum", StringUtils.toString(fdReceiveSum, eiMetadata.getMeta("fdReceiveSum")));
		map.put("fdValidateSum", StringUtils.toString(fdValidateSum, eiMetadata.getMeta("fdValidateSum")));
		map.put("fdValidateNum", StringUtils.toString(fdValidateNum, eiMetadata.getMeta("fdValidateNum")));
		map.put("fdValidatePeople", StringUtils.toString(fdValidatePeople, eiMetadata.getMeta("fdValidatePeople")));
		map.put("fdValidateStatus", StringUtils.toString(fdValidateStatus, eiMetadata.getMeta("fdValidateStatus")));
		map.put("fdImportnoteCode", StringUtils.toString(fdImportnoteCode, eiMetadata.getMeta("fdImportnoteCode")));

		map.put("fdStatus", StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));
		map.put("fdSupplyName", StringUtils.toString(fdSupplyName, eiMetadata.getMeta("fdSupplyName")));

		map.put("fdMaterialInnerCode", StringUtils.toString(fdMaterialInnerCode, eiMetadata.getMeta("fdMaterialInnerCode")));
		map.put("fdMaterialType", StringUtils.toString(fdMaterialType, eiMetadata.getMeta("fdMaterialType")));
		map.put("fdPrice", StringUtils.toString(fdPrice, eiMetadata.getMeta("fdPrice")));

		map.put("fdSum", StringUtils.toString(fdSum, eiMetadata.getMeta("fdSum")));
		map.put("fdPlanNumber", StringUtils.toString(fdPlanNumber, eiMetadata.getMeta("fdPlanNumber")));
		map.put("fdActualNumber", StringUtils.toString(fdActualNumber, eiMetadata.getMeta("fdActualNumber")));
		map.put("fdProvideDepartment", StringUtils.toString(fdProvideDepartment, eiMetadata.getMeta("fdProvideDepartment")));
		map.put("fdRequirePlan", StringUtils.toString(fdRequirePlan, eiMetadata.getMeta("fdRequirePlan")));
		map.put("fdTechnicalDocument", StringUtils.toString(fdTechnicalDocument, eiMetadata.getMeta("fdTechnicalDocument")));
		map.put("fdRemark", StringUtils.toString(fdRemark, eiMetadata.getMeta("fdRemark")));

		map.put("fdMaterialSource", StringUtils.toString(fdMaterialSource, eiMetadata.getMeta("fdMaterialSource")));
		map.put("fdInvoice", StringUtils.toString(fdInvoice, eiMetadata.getMeta("fdInvoice")));
		map.put("fdInvoiceSum", StringUtils.toString(fdInvoiceSum, eiMetadata.getMeta("fdInvoiceSum")));
		
		map.put("fdDate", StringUtils.toString(fdDate, eiMetadata.getMeta("fdDate")));
		map.put("fdTypeCode", StringUtils.toString(fdTypeCode, eiMetadata.getMeta("fdTypeCode")));
		map.put("fdTypeName", StringUtils.toString(fdTypeName, eiMetadata.getMeta("fdTypeName")));
		map.put("fdNotNumber", StringUtils.toString(fdNotNumber, eiMetadata.getMeta("fdNotNumber")));

		return map;

	}
}